export const getechartsnum = (res, interval = 4) => {
  let maxData = Math.max(...res);
  let minData = Math.min(...res);
  let maxnum = Math.ceil(maxData / interval);
  let minnum = Math.floor(minData / interval);
  const data = {
    maxnum,
    minnum,
    maxData,
    minData,
    data: res,
    interval: interval,
  };
  return data;
};
